﻿
IF object_id(N'dbo.[UDS_Flow_Status]', 'U') IS NULL
BEGIN
    CREATE TABLE [dbo].[UDS_Flow_Status] (
        [Doc_ID]   int NULL,
        [Staff_ID] int NULL,
        [Status]   int NULL,

        CONSTRAINT [FK_UDS_Flow_Status_DocID] FOREIGN KEY (Doc_ID) REFERENCES dbo.UDS_Flow_Document(Doc_ID),
        CONSTRAINT [FK_UDS_Flow_Status_StaffID] FOREIGN KEY (Staff_ID) REFERENCES dbo.UDS_Staff (Staff_ID)
    );
END
GO
